package com.github.larry.openstack.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
@Api(value = "OpenStack 服务模块测试")
public class HelloController {

    @Value("${name}")
    private String name;


    @GetMapping(value = "name")
    @ApiOperation(value = "返回Config-Server的name配置值")
    public String getName() {
        return this.name;
    }
}
